<h1>Users (<?= User::count(); ?>)</h1>
<?= link_to("Add User", array("controller" => "user", "action" => "add")) ?>
<table>
  <tr>
    <th>Id</th>    
    <th>Login</th>    
    <th>Email</th>    
    <th>Hashed Password</th>    
    <th>Salt</th>    
    <th>Created At</th>    
    <th>Updated At</th>    
    <th colspan="3">Actions</th>
  </tr>  
<? foreach($users as $user) : ?>
  <tr>
      <td><?= $user->id; ?></td>
      <td><?= $user->login; ?></td>
      <td><?= $user->email; ?></td>
      <td><?= $user->hashed_password; ?></td>
      <td><?= $user->salt; ?></td>
      <td><?= $user->created_at; ?></td>
      <td><?= $user->updated_at; ?></td>
    
    <td><?= link_to("View",   array("controller" => "user", "action" => "view",   "id" => $user->id)) ?></td>
    <td><?= link_to("Edit",   array("controller" => "user", "action" => "edit",   "id" => $user->id)) ?></td>
    <td><?= link_to("Delete", array("controller" => "user", "action" => "delete", "id" => $user->id)) ?></td>
  </tr>  
<? endforeach; ?>
</table>